<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 留言列表</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <include file="common_css"/>
    <!-- Data Tables -->
    <link href="__PUBLIC__/admin/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <style>
        .page{width:80%;height:30px;margin:auto;margin-top:30px;}
        .page a{padding:8px;border:1px solid #CCC;}
        .page a:hover{color:#7C1B00;border:1px solid darkred;}
        .page span{padding:8px;border:1px solid #1A3E4A;margin:0px 5px;}
        /*td,th{text-align: center;}*/

        .fa-search-plus{font-size: 18px;}
    </style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>留言列表</h5>
                    </div>
                    <div class="ibox-content">
                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th width="60px">姓名</th>
                                    <th>联系电话</th>
                                    <th>邮箱</th>
                                    <th>留言内容</th>
                                    <th width="60px;">处理状态</th>
                                    <th width="150px;">时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <volist name="list" id="vo">
                                <tr class="gradeX">
                                    <td>{$vo.book_id}</td>
                                    <td>{$vo.book_name}</td>
                                    <td>{$vo.book_phone}</td>
                                    <td>{$vo.book_email}</td>
                                    <td>{$vo.book_content}</td>
                                    <td><if condition="$vo.status eq 1"><span style="color:green;">已处理</span><else/><span style="color:red;">未处理</span></if></td>
                                    <td class="center">{$vo.add_time|date="Y-m-d H:i:s",###}</td>
                                    <td><a onclick="msg_save('编辑','__MODULE__/Index/leavingMessingDetail/id/{$vo.book_id}',900,850);"><i class="fa fa-search-plus text-navy"></i></a></td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                        <div class="page">{$page}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 全局js -->
    <include file="common_js"/>
    <!-- Data Tables -->
    <script src="__PUBLIC__/admin/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__/admin/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <!-- 自定义js -->
    <script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
    <!-- Page-Level Scripts -->
    <script src="__PUBLIC__/common/js/layer_show.js"></script>
    <script>
        $(document).ready(function () {
            //$('.dataTables-example').dataTable();
        });

        function msg_save(title,url,w,h) {
            layer_show(title,url,w,h);
        }
    </script>
</body>
</html>
